import axios from "axios";

async function UpdataTeacher(getData) {

    try {

        const response = await axios.post('/update-teacher', getData);

        console.log('Teacher updated successfully:', response.data);

        return response.data; // 如果需要处理返回的数据，可以在这里进行处理
    } catch (error) {

        console.error('Error updating teacher:', error.message);

        throw error;
    }
   
}

export default UpdataTeacher;